package cn.ipanel.bigdata.boot.source.genre

import cn.ipanel.bigdata.boot.date.Day
import cn.ipanel.bigdata.boot.source.{DataSource, Mapper}
import org.apache.spark.sql.{DataFrame, Dataset}

/**
 * Author: lzz
 * Date: 2022/1/27 16:24
 */
abstract class View(viewName: String) extends Mapper {

  def getTBColumns: Seq[String]

  override def getSourceGenre: DataSource.Genre = DataSource.GENRE_VIEW
  override def getSourceModel: DataSource.Model = DataSource.MODEL_READ

  def load(day: Day): DataFrame
}